<!DOCTYPE html>
<html lang="en"   xmlns:th="http://www.thymeleaf.org">
<head>
    <div th:replace="~{/fragment/header :: header-nav}"></div>
    <div th:replace="~{/fragment/header :: header}"></div>

    <div th:replace="~{/fragment/header :: header-css}"></div>


</head>
<body>
<div class="container">
    <table class="table table-danger">
        <a th:href="@{/parking/insert}" class="btn btn-success">新增</a>
        <thead>
            <tr>
                <th scope="row">序号</th>
                <th>停车场</th>
                <th>容积</th>
                <th></th>
            </tr>
        </thead>
        <tbody>
        <tr th:each="parking : ${list}">
            <td th:text="${parking.id}"></td>
            <td th:text="${parking.name}"></td>
            <td th:text="${parking.volumetric}"></td>
            <td>
                <a th:href="@{/parking/edit/{id}(id=${parking.id})}" class="btn btn-info">修改</a>
                <a th:href="@{/parking/detail/{id}(id=${parking.id})}" class="btn btn-danger">详情</a>
                <a th:href="@{/parking/delete/{id}(id=${parking.id})}" class="btn btn-danger">删除</a>
            </td>
        </tr>
        </tbody>
    </table>
</div>
<div th:replace="~{/fragment/footer :: footer}"></div>
<div th:replace="~{/fragment/header :: header-js}"></div>

</body>
</html>